document

abstract fun document(): Optional<Document>

Returns an Optional that contains the DOM Document instance of the frame or an empty Optional if the frame does not have a document.

Throws

when the frame is closed